<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="/resources/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/resources/easyui/themes/icon.css">
    <script type="text/javascript" src="/resources/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/resources/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<table class="easyui-datagrid" title="后台管理" style="height:700px"
       data-options="rownumbers:true,singleSelect:true,url:'/orderspage',method:'get',toolbar:toolbar,pagination:true,pageSize:20">
    <thead>
    <tr>
        <th data-options="field:'ad_pos_name',width:80">推广位</th>
        <th data-options="field:'goods_name',width:500">商品名称</th>
        <th data-options="field:'goods_counts',width:100,halign:'center',align:'right'">商品数量</th>
        <th data-options="field:'goods_price',width:100,halign:'center',align:'right'">商品单价</th>
        <th data-options="field:'order_state',width:100,align:'center'">订单状态</th>
        <th data-options="field:'pay_price',width:100,halign:'center',align:'right'">付款金额</th>
        <th data-options="field:'estimate',width:100,halign:'center',align:'right'">效果预估</th>
        <th data-options="field:'close_price',width:100,halign:'center',align:'right'">结算金额</th>
        <th data-options="field:'estimate_revenue',width:100,halign:'center',align:'right'">预估收入</th>
        <th data-options="field:'commission_price',width:100,halign:'center',align:'right'">佣金金额</th>
    </tr>
    </thead>
</table>
</body>
</html>
<script type="text/javascript">
    var toolbar = [{
        text: '导入',
        iconCls: 'icon-add',
        handler: function (a, b, c) {
            window.open("/upload");
        }
    }];
</script>